Skip to content

fix(theme): prevent outline from skipping short sections near page bottom (#5473) - #5504

Open
vidupulapatithrylokya wants to merge 4 commits into
vuejs:mainfrom
vidupulapatithrylokya:fix/5473-outline-short-sections
Open

vidupulapatithrylokya wants to merge 4 commits into
vuejs:mainfrom
vidupulapatithrylokya:fix/5473-outline-short-sections

Conversation

@vidupulapatithrylokya

@vidupulapatithrylokya vidupulapatithrylokya commented Oct 9, 2026 •

Copy link
Copy Markdown

Fixes #5473.

Description

When multiple short sections are located near the bottom of a page, the previous page-bottom fallback unconditionally jumped to the last outline item, causing intermediate short sections to be skipped.

This fix removes the forced page-bottom override and smoothly moves the reference line downward only within the final viewport (maxScroll - innerHeight to maxScroll). This ensures that:

  • Intermediate short sections near the bottom are highlighted sequentially in both scrolling directions.
  • Existing scroll-spy behavior is preserved for the rest of the document.

@vidupulapatithrylokya vidupulapatithrylokya changed the title fix(theme): outline active link for short sections near page bottom (#5473) fix(theme): prevent outline from skipping short sections near page bottom (#5473) Oct 15, 2026
@github-actions github-actions Bot added the stale label Nov 15, 2026

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Right-side outline skips short sections near the page bottom

1 participant